﻿using Hrm.Core;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hrm.EntityFramework
{
    public class NoteDbContext : BaseDbContext
    {
        #region Properties

        public DbSet<Log> Logs { get; set; }

        #endregion

        #region Ctor

        public NoteDbContext()
            : base("name=NoteDbConnectionStrings")
        {
            //((IObjectContextAdapter)this).ObjectContext.ContextOptions.LazyLoadingEnabled = true;
        }

        public NoteDbContext(string nameOrConnectionString)
            : base(nameOrConnectionString)
        {
        }

        #endregion

        #region Utilities

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
        }

        #endregion
    }
}
